Class ClassMapImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ClassMapImpl
All Implemented Interfaces:
IPCObject, ClassMap

public class ClassMapImpl extends IPCObjectImpl implements ClassMap
Information provided by the PKI file:

    \class ClassMap
    
    \brief ClassMap handles the class maps for QoS.
    
    \example network().getDevice("Router0").getClassMapManager().getClassMapAt(0)
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getMapName

      public String getMapName()
      Information provided by the PKI file:
      
          \brief Returns the class map name.
          
          \return string, the class map name.
          
              
      Specified by:
      getMapName in interface ClassMap
      Returns:
      String Returns a String
    • setDescription

      public void setDescription(String description)
      Information provided by the PKI file:
      
          \brief Sets the class map description.
          
          \param description, the class map description.
          
              
      Specified by:
      setDescription in interface ClassMap
      Parameters:
      description - Takes in a parameter of description
    • getDescription

      public String getDescription()
      Information provided by the PKI file:
      
          \brief Returns the class map description.
          
          \return string, the class map description.
          
              
      Specified by:
      getDescription in interface ClassMap
      Returns:
      String Returns a String
    • getMatchTypeString

      public String getMatchTypeString()
      Information provided by the PKI file:
      
          \brief Returns the class map match types.
          
          \return string, the class map match types.
          
              
      Specified by:
      getMatchTypeString in interface ClassMap
      Returns:
      String Returns a String
    • getMatchType

      public ClassMapMatchType getMatchType()
      Information provided by the PKI file:
      
          \brief Returns the class map match type.
          
          \return QoS::EClassMapMatchType,    the class map match type.
          Match types:        eMatchAny = 0,
          eMatchAll = 1
          
              
      Specified by:
      getMatchType in interface ClassMap
      Returns:
      ClassMapMatchType Returns a ClassMapMatchType
    • setMatchType

      public void setMatchType(ClassMapMatchType matchType)
      Information provided by the PKI file:
      
          \brief Sets the class map match type.
          
          \param QoS::EClassMapMatchType,     the class map match type.
          Match types:        eMatchAny = 0,
          eMatchAll = 1
          
              
      Specified by:
      setMatchType in interface ClassMap
      Parameters:
      matchType - Takes in a parameter of matchType
    • toReverseString

      public String toReverseString()
      Information provided by the PKI file:
      
          \brief Returns the class map string.
          
          \param string, the class map string.
          
              
      Specified by:
      toReverseString in interface ClassMap
      Returns:
      String Returns a String
    • toString

      public String toString()
      Information provided by the PKI file:
      
          \brief Returns the class map reverse string.
          
          \param string, the class map reverse string.
          
              
      Specified by:
      toString in interface ClassMap
      Overrides:
      toString in class Object
      Returns:
      String Returns a String
    • getMapType

      public MapType getMapType()
      Information provided by the PKI file:
      
          \brief Returns the class map type.
          
          \return QoS::eMapType,      the map type.
          Map types:  type_default = 0,
          type_control = 1,
          type_inspect = 2,
          type_logging = 3
          
              
      Specified by:
      getMapType in interface ClassMap
      Returns:
      MapType Returns a MapType
    • setMapType

      public void setMapType(MapType mapType)
      Information provided by the PKI file:
      
          \brief Sets the class map type.
          
          \param mapType,     the map type.
          Map types:  type_default = 0,
          type_control = 1,
          type_inspect = 2,
          type_logging = 3
          
              
      Specified by:
      setMapType in interface ClassMap
      Parameters:
      mapType - Takes in a parameter of mapType
    • getStatementCnt

      public int getStatementCnt()
      Information provided by the PKI file:
      
          \brief Returns the number of statements in this class map.
          
          \return int, the number of statements in this class map.
          
              
      Specified by:
      getStatementCnt in interface ClassMap
      Returns:
      int Returns a int
    • isClassDefault

      public boolean isClassDefault()
      Information provided by the PKI file:
      
          \brief Returns true if this class map is class-default, otherwise false.
          
          \return bool, true if this class map is class-default, otherwise false.
          
              
      Specified by:
      isClassDefault in interface ClassMap
      Returns:
      boolean Returns a boolean